Skip to content

Conversation

@Pytal
Copy link
Member

@Pytal Pytal commented Apr 13, 2022

Add the import background job required for the API and to be started on the UI

@Pytal Pytal added 3. to review Waiting for reviews enhancement New feature request labels Apr 13, 2022
@Pytal Pytal added this to the 0.1 milestone Apr 13, 2022
@Pytal Pytal requested review from PVince81 and come-nc April 13, 2022 03:11
@Pytal Pytal self-assigned this Apr 13, 2022
@Pytal Pytal mentioned this pull request Apr 13, 2022
2 tasks
Signed-off-by: Christopher Ng <[email protected]>
@Pytal Pytal force-pushed the enh/add-import-job branch from 0cf4bf9 to 1314791 Compare April 13, 2022 03:31
/** @var int */
protected $status;

public function __construct() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can just reuse the same table and add a flag to say whether it's an import or export ?

Copy link
Member Author

@Pytal Pytal Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The oc_user_import_jobs table adds the target_user and path columns which oc_user_export_jobs doesn't have, so unless this massively impacts performance negatively let's keep it separate for now and add another migration later, if it's beneficial, to combine them into a oc_user_migration_jobs table and drop the other two

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine 👍

We can discuss separately if we should merge the import and export tables

@PVince81 PVince81 merged commit 48e422c into main Apr 13, 2022
@PVince81 PVince81 deleted the enh/add-import-job branch April 13, 2022 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants